home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat1
/
dbxhang.z
/
dbxhang
Wrap
Text File
|
1998-10-30
|
2KB
|
67 lines
DDDDBBBBXXXXHHHHAAAANNNNGGGG((((1111)))) DDDDBBBBXXXXHHHHAAAANNNNGGGG((((1111))))
NNNNAAAAMMMMEEEE
dbxhang - start a process without really starting it
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
dbxhang object-file
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_d_b_x_h_a_n_g starts a program running by doing a _f_o_r_k(2) and _e_x_e_c(2), leaving
the program stopped before executing its first instruction.
This is useful when a program to be debugged does unusual things with _t_t_y
characteristics, or which is sensitive to the <Interrupt> character and
you don't want any <Interrupt> in the _d_b_x command window sent to the
program to be debugged.
Use _d_b_x_h_a_n_g on the program to be debugged in one window and intercept the
stopped program with dbx -p or dbx -P from a different window. In the
_d_b_x session window, continue the program (after setting any breakpoints
desired) with the cont command: the run command is not usable on a
program intercepted with -p or -P.
Example:
dbxhang myprog myargument1 myargument2
(and, from another window)
dbx -P myprog
stop in main
cont
FFFFIIIILLLLEEEESSSS
/usr/sbin/dbxhang
SSSSEEEEEEEE AAAALLLLSSSSOOOO
dbx(1)
Compiling Debugging and Performance Tuning
DBX Reference Manual (odbx)
IRIS-4D Series Compiler Guide
PPPPaaaaggggeeee 1111